import 'element-plus/dist/index.css';
import { createApp } from 'vue';
//引入清除默认样式
import '@/style/style.css';
import '@/style/base.scss';
import 'font-awesome/css/font-awesome.min.css';
//引入前置守卫
import '@/router/permission';
import App from './App.vue';
import router from './router';
//SVG图标引入
import 'virtual:svg-icons-register';
import gloablComponent from './components/index';
// import R from "@/utils/request"
//图片懒加载
import { lazyPlugin } from '@/plugin/imgLazy';
//持久化存储
import { setupStore } from '@/store';

const app = createApp(App);
app.use(router); //路由
app.use(setupStore); // 全局注册 pinia
app.use(gloablComponent); //全局组件
app.use(lazyPlugin); //图片懒加载
// app.config.globalProperties.R = R
app.mount('#app');
